Skip to content

C#: fix whitespace attachment#7076

Merged
greg-at-moderne merged 1 commit intomainfrom
greg-csharp-ws-attachment
Mar 20, 2026
Merged

C#: fix whitespace attachment#7076
greg-at-moderne merged 1 commit intomainfrom
greg-csharp-ws-attachment

Conversation

@greg-at-moderne
Copy link
Copy Markdown
Contributor

@greg-at-moderne greg-at-moderne commented Mar 20, 2026

What's changed?

Similar to JavaScript's #6245 and Python's #7051, adding a test to ensure C# source code parsing adheres to the OpenRewrite expectation of attaching the whitespace to the outermost element.

What's your motivation?

Enforce the rule for C# too.

@greg-at-moderne greg-at-moderne self-assigned this Mar 20, 2026
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Mar 20, 2026
@greg-at-moderne greg-at-moderne marked this pull request as ready for review March 20, 2026 16:40
@greg-at-moderne greg-at-moderne merged commit 7c14f77 into main Mar 20, 2026
1 check passed
@greg-at-moderne greg-at-moderne deleted the greg-csharp-ws-attachment branch March 20, 2026 19:59
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant